/**
 * Created by MonSterist on 2017/12/8.
 */
angular.module('module.auth', [
    'ngResource',
    'ngCookies'
])
    .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
        $stateProvider
        //登录首页
            .state('login', {
                url: "/login",
                templateUrl: auth_view + "login.html",
                controller: 'LoginController',
                controllerAs: 'vm'
            })
             //注册页面
             .state('register', {
                 url: "/register",
                 templateUrl: auth_view + "register.html",
                 controller: 'RegisterController',
                 controllerAs: 'vm'
             })
             //忘记密码
             .state('resetpwd', {
                 url: "/resetpwd",
                 templateUrl: auth_view + "resetpwd.html",
                 controller: 'ResetpwdController',
                 controllerAs: 'vm'
             })
             //修改密码
             .state('changepwd', {
                 url: "/chagepwd",
                 templateUrl: auth_view + "changepwd.html",
                 controller: 'ChangepwdController',
                 controllerAs: 'vm'
             })
    }])